package com.elastic.bean.es;


import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Data
public class EsAddress implements Serializable {

    @Id
    private Long id;

    @Field(type = FieldType.Text,analyzer = "html_text_analyzer",searchAnalyzer = "ik_smart")
    private String name;

    @Field(type = FieldType.Long)
    private Long parentId;

    @Field(type = FieldType.Integer)
    private Integer level;

    @Field(type = FieldType.Text,analyzer = "html_text_analyzer",searchAnalyzer = "ik_smart")
    private String pathIds;

}
